package com.zcxx.cotton.pick.mapper;

import com.zcxx.cotton.pick.domain.PickMapElement;
import com.zcxx.cotton.pick.domain.PickMapInfo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;


public interface PickMapElementMapper
{
    public List<PickMapElement> selectPickMapElementListByPid(Long pid);

    public List<PickMapElement> selectPickMapElementList(@Param("deptId") Long deptId,@Param("name") String name);

    public int batchInsert(@Param("elements") List<PickMapElement> elements,@Param("deptId")Long deptId);

    public int batchUpdate(@Param("elements") List<PickMapElement> elements,@Param("tableName")String tableName);

    public void createTable(Long deptId);

    public void updateMianbao(PickMapElement pickMapElement);

    boolean getTrueOrFalse(@Param("longitude") String longitude, @Param("latitude") String latitude, @Param("result") String result);

    List<PickMapElement> selectAllElementList(Long deptId);

    public List<PickMapElement> selectAll(@Param("tableName") String tableName,@Param("category") String category);

    List<PickMapElement> selectByIds(@Param("list1") List<Long> list1);

    BigDecimal selectTotalArea(@Param("category") String category);

    void updateMianbaoBatch(@Param("list") List<PickMapElement> elements);
}
